<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class InsertDataToCompanyArticleType extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $data = [
            [
                "title"=>"关于我们"
            ],[
                "title"=>"经营业务"
            ],[
                "title"=>"企业文化"
            ],[
                "title"=>"团队形象"
            ],[
                "title"=>"联系我们"
            ]
        ];
        Db::table("company_article_types")->insert($data);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::table('company_article_types')->truncate();
    }
}
